package com.itmk.web.sys_user.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.web.sys_user.entity.SysUser;
import com.itmk.web.sys_user.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

@Service

public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public Long getMaxId() {
        long id =  this.baseMapper.getMaxId()+1;
        this.baseMapper.updateMaxId(id+1);
        return id;
    }
}
